<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/gui/widgets/qtextedit.cpp -->
<head>
  <title>Qt 4.3: Qt 3 Support Members for QTextEdit</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">Qt 3 Support Members for QTextEdit</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qtextedit.html">QTextEdit class reference</a></li></ul></p>
<h3>Public Types</h3>
<ul>
<li><div class="fn"/>enum <b><a href="qtextedit-qt3.html#KeyboardAction-enum">KeyboardAction</a></b> { ActionBackspace, ActionDelete, ActionReturn, ActionKill, ActionWordBackspace, ActionWordDelete }</li>
</ul>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"/><b><a href="qtextedit-qt3.html#QTextEdit-4">QTextEdit</a></b> ( QWidget * <i>parent</i>, const char * <i>name</i> )</li>
<li><div class="fn"/>bool <b><a href="qtextedit-qt3.html#bold">bold</a></b> () const</li>
<li><div class="fn"/>QColor <b><a href="qtextedit-qt3.html#color">color</a></b> () const</li>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#doKeyboardAction">doKeyboardAction</a></b> ( KeyboardAction <i>action</i> )</li>
<li><div class="fn"/>QString <b><a href="qtextedit-qt3.html#family">family</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qtextedit-qt3.html#find-2">find</a></b> ( const QString &amp; <i>exp</i>, bool <i>cs</i>, bool <i>wo</i> )</li>
<li><div class="fn"/>bool <b><a href="qtextedit-qt3.html#hasSelectedText">hasSelectedText</a></b> () const</li>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#insert">insert</a></b> ( const QString &amp; <i>text</i> )</li>
<li><div class="fn"/>bool <b><a href="qtextedit-qt3.html#isModified">isModified</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qtextedit-qt3.html#isRedoAvailable">isRedoAvailable</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qtextedit-qt3.html#isUndoAvailable">isUndoAvailable</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qtextedit-qt3.html#italic">italic</a></b> () const</li>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#moveCursor-2">moveCursor</a></b> ( CursorAction <i>action</i>, QTextCursor::MoveMode <i>mode</i> = QTextCursor::MoveAnchor )</li>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#moveCursor-3">moveCursor</a></b> ( CursorAction <i>action</i>, bool <i>select</i> )</li>
<li><div class="fn"/>int <b><a href="qtextedit-qt3.html#pointSize">pointSize</a></b> () const</li>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#redo-2">redo</a></b> () const</li>
<li><div class="fn"/>QString <b><a href="qtextedit-qt3.html#selectedText">selectedText</a></b> () const</li>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#setBold">setBold</a></b> ( bool <i>b</i> )</li>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#setFamily">setFamily</a></b> ( const QString &amp; <i>family</i> )</li>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#setItalic">setItalic</a></b> ( bool <i>i</i> )</li>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#setPointSize">setPointSize</a></b> ( int <i>size</i> )</li>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#setTextFormat">setTextFormat</a></b> ( Qt::TextFormat <i>f</i> )</li>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#setUnderline">setUnderline</a></b> ( bool <i>b</i> )</li>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#sync">sync</a></b> ()</li>
<li><div class="fn"/>QString <b><a href="qtextedit-qt3.html#text">text</a></b> () const</li>
<li><div class="fn"/>Qt::TextFormat <b><a href="qtextedit-qt3.html#textFormat">textFormat</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qtextedit-qt3.html#underline">underline</a></b> () const</li>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#undo-2">undo</a></b> () const</li>
</ul>
<ul>
<li><div class="fn"/>60 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li><div class="fn"/>8 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li><div class="fn"/>8 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<h3>Public Slots</h3>
<ul>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#setColor">setColor</a></b> ( const QColor &amp; <i>color</i> )</li>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#setModified">setModified</a></b> ( bool <i>m</i> = true )</li>
</ul>
<ul>
<li><div class="fn"/>1 public slot inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
</ul>
<h3>Signals</h3>
<ul>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#currentColorChanged">currentColorChanged</a></b> ( const QColor &amp; <i>color</i> )</li>
<li><div class="fn"/>void <b><a href="qtextedit-qt3.html#currentFontChanged">currentFontChanged</a></b> ( const QFont &amp; <i>font</i> )</li>
</ul>
<hr />
<h2>Member Type Documentation</h2>
<h3 class="fn"><a name="KeyboardAction-enum"></a>enum QTextEdit::KeyboardAction</h3>
<p><table border="1" cellpadding="2" cellspacing="1" width="40%">
<tr><th width="60%">Constant</th><th width="40%">Value</th></tr>
<tr><td valign="top"><tt>QTextEdit::ActionBackspace</tt></td><td align="center" valign="top"><tt>0</tt></td></tr>
<tr><td valign="top"><tt>QTextEdit::ActionDelete</tt></td><td align="center" valign="top"><tt>1</tt></td></tr>
<tr><td valign="top"><tt>QTextEdit::ActionReturn</tt></td><td align="center" valign="top"><tt>2</tt></td></tr>
<tr><td valign="top"><tt>QTextEdit::ActionKill</tt></td><td align="center" valign="top"><tt>3</tt></td></tr>
<tr><td valign="top"><tt>QTextEdit::ActionWordBackspace</tt></td><td align="center" valign="top"><tt>4</tt></td></tr>
<tr><td valign="top"><tt>QTextEdit::ActionWordDelete</tt></td><td align="center" valign="top"><tt>5</tt></td></tr>
</table></p>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QTextEdit-4"></a>QTextEdit::QTextEdit ( <a href="qwidget.html">QWidget</a> * <i>parent</i>, const char * <i>name</i> )</h3>
<p>Use one of the constructors that doesn't take the <i>name</i> argument and then use <a href="qobject.html#objectName-prop">setObjectName</a>() instead.</p>
<h3 class="fn"><a name="bold"></a>bool QTextEdit::bold () const</h3>
<p>Use <a href="qtextedit.html#fontWeight">fontWeight</a>() &gt;= <a href="qfont.html#Weight-enum">QFont::Bold</a> instead.</p>
<p>See also <a href="qtextedit-qt3.html#setBold">setBold</a>().</p>
<h3 class="fn"><a name="color"></a><a href="qcolor.html">QColor</a> QTextEdit::color () const</h3>
<p>Use <a href="qtextedit.html#textColor">textColor</a>() instead.</p>
<p>See also <a href="qtextedit-qt3.html#setColor">setColor</a>().</p>
<h3 class="fn"><a name="currentColorChanged"></a>void QTextEdit::currentColorChanged ( const <a href="qcolor.html">QColor</a> &amp; <i>color</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>Use <a href="qtextedit.html#currentCharFormatChanged">currentCharFormatChanged</a>() instead.</p>
<h3 class="fn"><a name="currentFontChanged"></a>void QTextEdit::currentFontChanged ( const <a href="qfont.html">QFont</a> &amp; <i>font</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p>Use <a href="qtextedit.html#currentCharFormatChanged">currentCharFormatChanged</a>() instead.</p>
<h3 class="fn"><a name="doKeyboardAction"></a>void QTextEdit::doKeyboardAction ( <a href="qtextedit-qt3.html#KeyboardAction-enum">KeyboardAction</a> <i>action</i> )</h3>
<p>Executes keyboard action <i>action</i>.</p>
<p>Use the <a href="qtextcursor.html">QTextCursor</a> class instead.</p>
<p>See also <a href="qtextedit.html#textCursor">textCursor</a>().</p>
<h3 class="fn"><a name="family"></a><a href="qstring.html">QString</a> QTextEdit::family () const</h3>
<p>Use <a href="qtextedit.html#fontFamily">fontFamily</a>() instead.</p>
<p>See also <a href="qtextedit-qt3.html#setFamily">setFamily</a>().</p>
<h3 class="fn"><a name="find-2"></a>bool QTextEdit::find ( const <a href="qstring.html">QString</a> &amp; <i>exp</i>, bool <i>cs</i>, bool <i>wo</i> )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use the <a href="qtextedit.html#find">find</a>() overload that takes a <a href="qtextdocument.html#FindFlag-enum">QTextDocument::FindFlags</a> argument.</p>
<h3 class="fn"><a name="hasSelectedText"></a>bool QTextEdit::hasSelectedText () const</h3>
<p>Use <a href="qtextedit.html#textCursor">textCursor</a>().hasSelection() instead.</p>
<h3 class="fn"><a name="insert"></a>void QTextEdit::insert ( const <a href="qstring.html">QString</a> &amp; <i>text</i> )</h3>
<p>Use <a href="qtextedit.html#insertPlainText">insertPlainText</a>() instead.</p>
<h3 class="fn"><a name="isModified"></a>bool QTextEdit::isModified () const</h3>
<p>Use <a href="qtextedit.html#document">document</a>()-&gt;isModified() instead.</p>
<h3 class="fn"><a name="isRedoAvailable"></a>bool QTextEdit::isRedoAvailable () const</h3>
<p>Use <a href="qtextedit.html#document">document</a>()-&gt;isRedoAvailable() instead.</p>
<h3 class="fn"><a name="isUndoAvailable"></a>bool QTextEdit::isUndoAvailable () const</h3>
<p>Use <a href="qtextedit.html#document">document</a>()-&gt;isUndoAvailable() instead.</p>
<h3 class="fn"><a name="italic"></a>bool QTextEdit::italic () const</h3>
<p>Use <a href="qtextedit.html#fontItalic">fontItalic</a>() instead.</p>
<p>See also <a href="qtextedit-qt3.html#setItalic">setItalic</a>().</p>
<h3 class="fn"><a name="moveCursor-2"></a>void QTextEdit::moveCursor ( <a href="qtextedit.html#CursorAction-enum">CursorAction</a> <i>action</i>, <a href="qtextcursor.html#MoveMode-enum">QTextCursor::MoveMode</a> <i>mode</i> = QTextCursor::MoveAnchor )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use the <a href="qtextcursor.html">QTextCursor</a> class instead.</p>
<h3 class="fn"><a name="moveCursor-3"></a>void QTextEdit::moveCursor ( <a href="qtextedit.html#CursorAction-enum">CursorAction</a> <i>action</i>, bool <i>select</i> )</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use the <a href="qtextcursor.html">QTextCursor</a> class instead.</p>
<h3 class="fn"><a name="pointSize"></a>int QTextEdit::pointSize () const</h3>
<p>Use int(<a href="qtextedit.html#fontPointSize">fontPointSize</a>()+0.5) instead.</p>
<p>See also <a href="qtextedit-qt3.html#setPointSize">setPointSize</a>().</p>
<h3 class="fn"><a name="redo-2"></a>void QTextEdit::redo () const</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use the non-const overload instead.</p>
<h3 class="fn"><a name="selectedText"></a><a href="qstring.html">QString</a> QTextEdit::selectedText () const</h3>
<p>Use <a href="qtextedit.html#textCursor">textCursor</a>().selectedText() instead.</p>
<h3 class="fn"><a name="setBold"></a>void QTextEdit::setBold ( bool <i>b</i> )</h3>
<p>Use <a href="qtextedit.html#setFontWeight">setFontWeight</a>() instead.</p>
<p>See also <a href="qtextedit-qt3.html#bold">bold</a>().</p>
<h3 class="fn"><a name="setColor"></a>void QTextEdit::setColor ( const <a href="qcolor.html">QColor</a> &amp; <i>color</i> )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Use <a href="qtextedit.html#setTextColor">setTextColor</a>() instead.</p>
<p>See also <a href="qtextedit-qt3.html#color">color</a>().</p>
<h3 class="fn"><a name="setFamily"></a>void QTextEdit::setFamily ( const <a href="qstring.html">QString</a> &amp; <i>family</i> )</h3>
<p>Use <a href="qtextedit.html#setFontFamily">setFontFamily</a>() instead.</p>
<p>See also <a href="qtextedit-qt3.html#family">family</a>().</p>
<h3 class="fn"><a name="setItalic"></a>void QTextEdit::setItalic ( bool <i>i</i> )</h3>
<p>Use <a href="qtextedit.html#setFontItalic">setFontItalic</a>() instead.</p>
<p>See also <a href="qtextedit-qt3.html#italic">italic</a>().</p>
<h3 class="fn"><a name="setModified"></a>void QTextEdit::setModified ( bool <i>m</i> = true )&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>Use document-&gt;setModified() instead.</p>
<p>See also <a href="qtextedit-qt3.html#isModified">isModified</a>().</p>
<h3 class="fn"><a name="setPointSize"></a>void QTextEdit::setPointSize ( int <i>size</i> )</h3>
<p>Use <a href="qtextedit.html#setFontPointSize">setFontPointSize</a>() instead.</p>
<p>See also <a href="qtextedit-qt3.html#pointSize">pointSize</a>().</p>
<h3 class="fn"><a name="setTextFormat"></a>void QTextEdit::setTextFormat ( <a href="qt.html#TextFormat-enum">Qt::TextFormat</a> <i>f</i> )</h3>
<p>Sets the text format to format <i>f</i>.</p>
<p>See also <a href="qtextedit-qt3.html#textFormat">textFormat</a>().</p>
<h3 class="fn"><a name="setUnderline"></a>void QTextEdit::setUnderline ( bool <i>b</i> )</h3>
<p>Use <a href="qtextedit.html#setFontUnderline">setFontUnderline</a>() instead.</p>
<p>See also <a href="qtextedit-qt3.html#underline">underline</a>().</p>
<h3 class="fn"><a name="sync"></a>void QTextEdit::sync ()</h3>
<p>Does nothing.</p>
<h3 class="fn"><a name="text"></a><a href="qstring.html">QString</a> QTextEdit::text () const</h3>
<p>Returns all the text in the text edit as plain text.</p>
<p>See also <a href="qtextedit.html#setText">setText</a>().</p>
<h3 class="fn"><a name="textFormat"></a><a href="qt.html#TextFormat-enum">Qt::TextFormat</a> QTextEdit::textFormat () const</h3>
<p>Returns the text format.</p>
<p>See also <a href="qtextedit-qt3.html#setTextFormat">setTextFormat</a>().</p>
<h3 class="fn"><a name="underline"></a>bool QTextEdit::underline () const</h3>
<p>Use <a href="qtextedit.html#fontUnderline">fontUnderline</a>() instead.</p>
<p>See also <a href="qtextedit-qt3.html#setUnderline">setUnderline</a>().</p>
<h3 class="fn"><a name="undo-2"></a>void QTextEdit::undo () const</h3>
<p>This is an overloaded member function, provided for convenience.</p>
<p>Use the non-const overload instead.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
